package com.group.three.mapper;


import com.group.three.pojo.UserLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xueyong
 * @since 2022-11-03
 */
@Mapper
public interface UserLogMapper {

    //插入登录IP
    int insertLog(@Param("logId") Long userlogId, @Param("personId") Long personId, @Param("ip") String ip,@Param("address")String address,@Param("now") LocalDateTime now);

    //查询登录日志
    List<UserLog> selectLogById(Long personId);


}
